package nccloud.web.hihr.ext.ref;

import nccloud.framework.web.processor.refgrid.RefQueryInfo;
import nccloud.framework.web.ui.meta.RefMeta;
import nccloud.web.refer.DefaultGridRefAction;

public class QysChooseRef extends DefaultGridRefAction{
	
	@Override
	public RefMeta getRefMeta(RefQueryInfo refQueryInfo) {
		RefMeta retMeta = new RefMeta();
		
		retMeta.setCodeField("code");
		retMeta.setNameField("name");
		retMeta.setPkField("pk_qyschoose");
		retMeta.setTableName("smg_pay_qyschoose");
		retMeta.setExtraFields(new String[] {"code", "name"});
		retMeta.setMutilLangNameRef(false);
		setShowDisabledData(null);
		return retMeta;
	}

	@Override
	public String getOrderSql(RefQueryInfo para, RefMeta meta) {
		return " order by code ";
	}
	
	@Override
	public String getExtraSql(RefQueryInfo para, RefMeta meta) {
		StringBuffer sql = new StringBuffer();
		sql.append(" 11 = 11 ");
		return sql.toString();
	}
}
